import java.awt.Container;
import java.awt.Dimension;
import java.util.Vector;

import javax.swing.JFrame;
import javax.swing.JList;

public class RecipeFrame extends JFrame {
	public RecipeFrame(Model model, String recipe) {
		setTitle(recipe);
		setPreferredSize(new Dimension(800, 600));
		
		Recipe r = model.getRecipe(recipe);
		Container c = getContentPane();
		Vector<Predicate> v = new Vector<Predicate>(r.getDish());
	
		JList l = new JList(v);
		c.add(l);
		
		pack();
 	}
}
